package com.chinacoal.microservice.api.model.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.List;

@Data
public class CompleteTaskVo {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value ="处理时间", example="yyyy-MM-dd HH:mm:ss", required=true)
    @NotNull(message = "处理时间不能为空: handleTime")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",locale = "zh" , timezone="GMT+8")
    private Date handleTime;

    @ApiModelProperty(value ="应用系统id", example="", required=true)
    @NotBlank(message = "应用系统: sysCode")
    private String sysCode;

    @ApiModelProperty(value ="app请求的地址", example="", required=false)
    private String appUrl;

    @ApiModelProperty(value ="pc请求的地址", example="", required=false)
    private String pcUrl;

    @ApiModelProperty(value ="审批源", example="", required=false)
    private String completeFrom;

    @ApiModelProperty(value ="待办在应用系统中的id集合", example="调用批量完成接口时必传", required=false)
    private List<String> sysTaskIdList;

    @ApiModelProperty(value ="待办在应用系统中的id", example="调用完成接口时必传", required=false)
    private String sysTaskId;

}
